<?php
/*
 * Created on 23 sept. 2010
 * Created by Ludovic Reenaers
 * lreenaers@hotmail.com
 */
class ModelDocument extends Model{
	function show(){
		$dao=$this->daoFactory->getDocumentDAO();
		$bean = $dao->getById((int)$this->params[3]);
		$facto  = new EntiteFactory($bean->getTypeDocument()->getEntite(),$this->translator,$this->params,$this->daoFactory);
		$tab = array($bean,$facto);
		return $tab;
	}
}
?>